package com.example.yogurtsystem.service;

import com.example.yogurtsystem.dto.ResultDTO;
import com.example.yogurtsystem.entity.Budget;

import java.math.BigDecimal;
import java.util.List;

/**
 * @auther lecon
 * @date 2021/8/15  13:29
 */
public interface BudgetService {

    /**
     * 添加某一年份预算表
     * @param year
     */
    int insertBudgetByYear(int year);

    /**
     * 更新某年某季度预算
     * @param budget
     */
    void updateBudget(Budget budget);

    Budget getOne(String id);

    BigDecimal getQuarterBudget(String yearAndQuarter);

    List<Budget> getBudget(int year);

    ResultDTO getBudget(int pageNum, int pageSize, int  year);
}
